Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magnify light source radius rather than shape #4803

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented May 28, 2024

Identify the Bug or Feature request

Fixes #257

Description of the Change

When a sight magnifier is present, we now scale the input (light radius) rather than the output (shape). This makes cone, grid, and beam lights more well-behaved since we don't scale things that should not be scaled.

Possible Drawbacks

Light will behave a bit differently, so if someone is counting on the current behaviour they will be surprised.

Documentation Notes

Grid lights now match the shape and size of the grid when magnified.

Beam lights extend in length when magnified, but not in width.

Code lights expand their radius when magnified, but the token footprint is not scaled up.

Release Notes

  • Fixed a bug where token footprints for cone lights would be magnified.

This change is Reviewable

This avoids various issues with lights:
- For cone lights, it keeps the token footprint shape small rather than scaling up with magnification. The actual cone
  has its _radius_ scaled up.
- For grid lights, it allows the border to follow the grid instead of being built out of larger cells (obvious when
  using hex grids)
- For beam lights, it keeps the beamm thin while making it project further out
this allows us to consistently avoid magnifying darkness and auras without having to constantly check these conditions
in `ZoneView`.
@kwvanderlinde kwvanderlinde self-assigned this May 28, 2024
@kwvanderlinde kwvanderlinde linked an issue May 28, 2024 that may be closed by this pull request
@cwisniew cwisniew added this pull request to the merge queue May 30, 2024
Merged via the queue into RPTools:develop with commit 4afc0b4 May 30, 2024
5 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/257-short-cone-artifacts branch June 28, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Cone vision shape produces incorrect personal light radius
2 participants